package com.cskaoyan.weixin.controller;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.weixin.bean.home.WxHomeVO;
import com.cskaoyan.weixin.service.WxHomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/wx/home")
public class WxHomeController {

    @Autowired
    WxHomeService wxHomeService;

    @RequestMapping("/index")
    public BaseRespVo index() {
        WxHomeVO wxHomeVO = wxHomeService.index();
        return BaseRespVo.ok(wxHomeVO);

    }
}
